import request from '../../../utils/bsinRequest';

// 分页查询合约实例
export const getContractPageList = (params) => {
  return request('/list', {
    serviceName: 'AdminContractService',
    methodName: 'getPageList',
    bizParams: {
      ...params,
    },
  });
};

// 新增合约实例
export const addContract = (params) => {
  return request('/add', {
    serviceName: 'AdminContractConfigService',
    methodName: 'add',
    bizParams: {
      ...params,
    },
  });
};

// 删除合约实例
export const deleteContract = (params) => {
  return request('/add', {
    serviceName: 'AdminContractService',
    methodName: 'delete',
    bizParams: {
      ...params,
    },
  });
};

// 查询合约实例详情
export const getContractInfo = (params) => {
  return request('/add', {
    serviceName: 'AdminContractService',
    methodName: 'getContractInfo',
    bizParams: {
      ...params,
    },
  });
};
